/* Typora主题 - 基于Typora默认主题 */
.markdown-theme-typora {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  padding: 0 10px;
}

.markdown-theme-typora h1,
.markdown-theme-typora h2,
.markdown-theme-typora h3,
.markdown-theme-typora h4,
.markdown-theme-typora h5,
.markdown-theme-typora h6 {
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #000;
}

.markdown-theme-typora h1 {
  font-size: 28px;
  text-align: center;
  margin-bottom: 30px;
}

.markdown-theme-typora h2 {
  font-size: 24px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.markdown-theme-typora h3 {
  font-size: 20px;
}

.markdown-theme-typora h4 {
  font-size: 18px;
}

.markdown-theme-typora h5 {
  font-size: 16px;
}

.markdown-theme-typora h6 {
  font-size: 16px;
  color: #777;
}

.markdown-theme-typora p {
  margin-bottom: 16px;
}

.markdown-theme-typora a {
  color: #0366d6;
  text-decoration: none;
}

.markdown-theme-typora a:hover {
  text-decoration: underline;
}

.markdown-theme-typora strong {
  font-weight: bold;
}

.markdown-theme-typora em {
  font-style: italic;
}

.markdown-theme-typora del {
  text-decoration: line-through;
}

.markdown-theme-typora ul,
.markdown-theme-typora ol {
  padding-left: 2em;
  margin-bottom: 16px;
}

.markdown-theme-typora ul {
  list-style-type: disc;
}

.markdown-theme-typora ol {
  list-style-type: decimal;
}

.markdown-theme-typora li {
  margin-bottom: 0.25em;
}

.markdown-theme-typora blockquote {
  border-left: 4px solid #dfe2e5;
  padding: 0 15px;
  color: #777;
  margin: 0 0 16px 0;
}

.markdown-theme-typora code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
  background-color: rgba(0, 0, 0, 0.04);
  border-radius: 3px;
  padding: 0.2em 0.4em;
  font-size: 85%;
}

.markdown-theme-typora pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
  background-color: #f6f8fa;
  border-radius: 3px;
  padding: 16px;
  overflow: auto;
  margin-bottom: 16px;
  font-size: 85%;
  line-height: 1.45;
}

.markdown-theme-typora pre code {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
}

.markdown-theme-typora table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 16px;
  display: block;
  overflow-x: auto;
}

.markdown-theme-typora table th,
.markdown-theme-typora table td {
  border: 1px solid #dfe2e5;
  padding: 6px 13px;
}

.markdown-theme-typora table tr {
  background-color: #fff;
  border-top: 1px solid #c6cbd1;
}

.markdown-theme-typora table tr:nth-child(2n) {
  background-color: #f6f8fa;
}

.markdown-theme-typora img {
  max-width: 100%;
  margin: 0 auto;
  display: block;
}

.markdown-theme-typora hr {
  height: 0.25em;
  padding: 0;
  margin: 24px 0;
  background-color: #e1e4e8;
  border: 0;
}

/* 暗色模式 */
.dark-mode .markdown-theme-typora {
  color: #d1d5da;
  background-color: #282c34;
}

.dark-mode .markdown-theme-typora h1,
.dark-mode .markdown-theme-typora h2,
.dark-mode .markdown-theme-typora h3,
.dark-mode .markdown-theme-typora h4,
.dark-mode .markdown-theme-typora h5 {
  color: #e6edf3;
}

.dark-mode .markdown-theme-typora h6 {
  color: #a0a0a0;
}

.dark-mode .markdown-theme-typora h2 {
  border-bottom-color: #3e4451;
}

.dark-mode .markdown-theme-typora a {
  color: #61afef;
}

.dark-mode .markdown-theme-typora blockquote {
  border-left-color: #3e4451;
  color: #a0a0a0;
}

.dark-mode .markdown-theme-typora code {
  background-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .markdown-theme-typora pre {
  background-color: #2c313a;
}

.dark-mode .markdown-theme-typora table th,
.dark-mode .markdown-theme-typora table td {
  border-color: #3e4451;
}

.dark-mode .markdown-theme-typora table tr {
  background-color: #282c34;
  border-top-color: #3e4451;
}

.dark-mode .markdown-theme-typora table tr:nth-child(2n) {
  background-color: #2c313a;
}

.dark-mode .markdown-theme-typora hr {
  background-color: #3e4451;
} 